package com.basin.common.glc.context;

import com.basin.common.glc.pojo.BasinLogVO;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 * @date: 2025/6/21 18:20
 * @description:
 */
public class BasinLogContext {
    private static final ThreadLocal<BasinLogVO> threadLocal = new InheritableThreadLocal<>();

    public static void set(BasinLogVO vo) {
        threadLocal.set(vo);
    }

    public static BasinLogVO get() {
        return threadLocal.get();
    }

    public static void clear() {
        threadLocal.remove();
    }
}
